import torch


t = torch.tensor([[1, 2, 3], [4, 5, 6]])


print(t, t.dtype, t.shape)


T = torch.Tensor([[1, 2, 3], [4, 5, 6]])


print(T, T.dtype, T.shape)


t1 = torch.tensor([1,2,3])
t2 = torch.tensor([4,5,6])
t3 = torch.cat([t1, t2])
t3


t4 = torch.stack([t1,t2])
t4


t


t.view((3, 2))


t


t1 = torch.tensor([1,2,3])
t2 = torch.tensor([[2,2,2],[2,2,2]])
t3 = torch.add(t1, t2)
t3


t4 = torch.mul(t1, t2)
t4



